/*
 * @Descripttion:
 * @version:
 * @Author: hhy
 * @Date: 2021-02-19 18:39:00
 * @LastEditors: hhy
 * @LastEditTime: 2021-02-20 17:38:07
 * @FilePath: \vue3-dome\src\main.ts
 */
import { createApp } from "vue";
import App from "./App.vue";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import router from "@/router/index.js";
import store from "./store";
// 注册 全局组件
import registerGlobComp from "@/components/global";
// 抽奖
import { Table } from "ant-design-vue";
import "@/styles/antd.css";

import VueUeditorWrap from 'vue-ueditor-wrap';

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 注册全局组件
registerGlobComp(app);
app.config.warnHandler = () => null;

app.use(Table);
app.use(ElementPlus, {
  locale: zhCn,
});


app.use(store).use(router).use(VueUeditorWrap).mount("#app");
